import request from '@/utils/request'

export function login(username, password) {
  const params = {}
  params.username = username
  params.password = password
  // params.companyId = 0
  return request({
    url: '/pmLogin/login',
    method: 'post',
    data: params
  })
}

export function getInfo() {
  return request({
    url: '/pmLogin/getAdmin',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/pmLogin/logout',
    method: 'post'
  })
}
